FROM sais-public-registry.cn-shanghai.cr.aliyuncs.com/sais-public/pytorch:2.0.0-py3.9.12-cuda11.8.0-u22.04

# 环境配置：禁用所有并行线程
ENV PIP_PROGRESS_BAR=off
ENV OPENBLAS_NUM_THREADS=1
ENV OMP_NUM_THREADS=1
ENV MKL_NUM_THREADS=1
ENV VECLIB_MAXIMUM_THREADS=1

# 先卸载原有 numpy，再安装指定版本和其他依赖
RUN pip uninstall -y numpy && \
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
        numpy==1.21.0 \
        biopython \
        pandas

# 复制项目文件
COPY app /app
WORKDIR /app

CMD ["sh", "run.sh"]